#include "common.h"
#include <QClipboard>
#include <QGuiApplication>

const char *  getImgFormat(ImageFormat IF){
    switch (IF){
        case JPG:
            return "jpg";
            break;
        case PNG:
            return "png";
            break;
        case TTF:
            return "ttf";
            break;
        default:
            return "";
            break;
    }
}


void copyImage2Clipboard(QPixmap pix) {
    QClipboard *cli = QGuiApplication::clipboard();
    cli->clear();
    cli->setPixmap(pix);
}
